
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import '@/permission'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

import App from './App.vue'
import router from './router'

// 内容组件
import { QuillEditor } from '@vueup/vue-quill'
import '@vueup/vue-quill/dist/vue-quill.snow.css';

const app = createApp(App)
app.use(createPinia())
app.use(router)
// 设置组件库语言包
app.use(ElementPlus,{
  locale:zhCn
})
// 内容组件
app.component('QuillEditor', QuillEditor)


for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.mount('#app')




